package Game;

/**
 * board to play
 * @author Jose
 *
 */
public class BBoard 
{
	private Card [] board;
	private int c;
	
	public BBoard()
	{
		board = new Card[6];
		c = 0;
	}
	
	public void add(Card a)
	{
		board[c] = a;
		c++;
	}
	
	public Card[] getBoard()
	{
		return board;
	}
	
	public Card remove(int x)
	{
		Card aCard = board[x];
		board[x] = null;
		return aCard;
	}
	
	public Card getCard(int x)
	{
		Card aCard = board[x];
		return aCard;
	}
	
	public String toString()
	{
		String r = "";
		for(int i = 5; i>2; i--)
		{
			r = r + board[i].toString() + " | ";
		}
		return r;
	}
}
